package com.qf.model;

import java.sql.Date;

//--用户理财产品信息表
public class MyProduct {
    private Integer id;     //我的理财产品编号
    private Integer p_id;     //产品编号
    private Integer u_id;     //用户编号
    private Integer share;     //购买产品份额
    private Date date;          //购买时间
    private Double capital;     //本金
    private Double money;       //余额
    public MyProduct() {
    }

    public MyProduct(Integer p_id, Integer u_id, Integer share, Date date, Double capital, Double money) {
        this.p_id = p_id;
        this.u_id = u_id;
        this.share = share;
        this.date = date;
        this.capital = capital;
        this.money = money;
    }

    public MyProduct(Integer p_id, Integer u_id, Integer share, Date date) {
        this.p_id = p_id;
        this.u_id = u_id;
        this.share = share;
        this.date=date;
    }

    public MyProduct(Integer id, Integer p_id, Integer u_id, Integer share) {
        this.id = id;
        this.p_id = p_id;
        this.u_id = u_id;
        this.share = share;
    }

    public Double getCapital() {
        return capital;
    }

    public void setCapital(Double capital) {
        this.capital = capital;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getP_id() {
        return p_id;
    }

    public void setP_id(Integer p_id) {
        this.p_id = p_id;
    }

    public Integer getU_id() {
        return u_id;
    }

    public void setU_id(Integer u_id) {
        this.u_id = u_id;
    }

    public Integer getShare() {
        return share;
    }

    public void setShare(Integer share) {
        this.share = share;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "MyProduct{" +
                "id=" + id +
                ", p_id=" + p_id +
                ", u_id=" + u_id +
                ", share=" + share +
                '}';
    }
}
